<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateAuxiliaryUltrasoundCheckTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('st_auxiliary_ultrasound_check', function (Blueprint $table) {
            $table->increments('id');
            $table->unsignedInteger('record_id');
            $table->text('images');
            $table->text('remark');
            //  类型名与类型值见配置文件 config/custom/auxiliary.php
            $table->unsignedTinyInteger('check_type')->comment('检查类型');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('st_auxiliary_ultrasound_check');
    }
}
